//
//  CarTravelModel.h
//  BalanceCar
//
//  Created by 郑信鸿 on 2017/8/24.
//  Copyright © 2017年 郑信鸿. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CarTravelModel : NSObject

@property(nonatomic, assign)int power;//电量%

@property(nonatomic, assign)float speed;

@property(nonatomic, assign)float ODO;//总里程数

@property(nonatomic, assign)float DST;//本次里程数

@property(nonatomic, assign)double travelTime;

@property(nonatomic, assign)BOOL isLock;//是否锁车

@property(nonatomic, assign)BOOL isChage;//是否充电

@property(nonatomic, assign)BOOL islightONOFF;

@property(nonatomic, assign)BOOL islightAUTO;//

@property(nonatomic, assign)NSInteger mode;//启动方式

@property(nonatomic, assign)BOOL isXH;//1巡航，0非巡航

@property(nonatomic, assign)BOOL gears;//档位

@property(nonatomic, assign)Byte faultByte;//故障字节

/*
 故障码(1有效)
 Bit0:与控制器通讯故障
 Bit1:霍尔故障
 Bit2:转把故障
 Bit3:控制器故障
 Bit4:欠压保护
 Bit5:电机缺相故障
 Bit6:断电刹把启动
 Bit7:其它故障
 */




@end
